<html>
<body>

<script>

function delayedUpload() {
  window.domAutomationController.send("SUBMISSION_FINISHED");
}

function receiveMessage(event) {
  var login_iframe = document.getElementById('login_iframe');
  login_iframe.parentNode.removeChild(login_iframe);
  setTimeout(delayedUpload, 0);
}

window.addEventListener("message", receiveMessage, false);

</script>

<iframe src="inner_frame.html" id="login_iframe" name="login_iframe">
</iframe>


</body>
</html>
